﻿Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration


Public Class DB
    Public Shared Function Conexion() As SqlConnection
        Conexion = New SqlConnection(ConfigurationManager.ConnectionStrings("CSSBD2_Local").ConnectionString)
    End Function

    Public Shared Function ObtenerDataset(ByVal nombre_store As String) As DataSet
        Dim da As New SqlDataAdapter(nombre_store, Conexion)
        Dim ds As New DataSet
        da.Fill(ds, nombre_store)
        Return ds
    End Function



End Class
